﻿using System;
using System.Diagnostics;
using TI_BLE_HCI_ClientLib.HCIBaseEntities;
using TI_BLE_HCI_ClientLib.HCIEvents;
using Utilities;

namespace TI_BLE_HCI_ClientLib.HCIParsers
{
    public static partial class HCIEventParser
    {
        private static HCIEvent parseHCI_LE_ExtEvent_ATT_Find_By_Type_Value_Request(byte parsLen, byte[] buffer)
        {
            HCIVendorSpecificEventHostErrorCode status;
            ushort connHandle;
            byte pduLen;
            byte[] pdu;

            parseHCI_LE_ExtEvent_GATT_Base_Event(parsLen, buffer,
                out status,
                out connHandle,
                out pduLen,
                out pdu);

            var hciEvent = new HCIEvent_ATT_Find_By_Type_Value_Request(status,connHandle,pduLen,pdu);

            return hciEvent;
        }
    }
}
